Since we are specifying in the unit files a comment of requiring
systemd >= 246, set the req at buildtime and drop the comment.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2800>
PartOf=gnome-session-initialized.target
Before=gnome-session-initialized.target
-#NOTE: ConditionEnvironment works with systemd >= 246
ConditionEnvironment=XDG_SESSION_TYPE=%I
[Service]
PartOf=gnome-session-initialized.target
Before=gnome-session-initialized.target
-#NOTE: ConditionEnvironment works with systemd >= 246
ConditionEnvironment=XDG_SESSION_TYPE=%I
# Limit startup frequency more than the default
polkit_req = '>= 0.100'
schemas_req = '>= 42.beta'
startup_req = '>= 0.11'
+systemd_req = '>= 246'
ibus_req = '>= 1.5.19'
gnome_desktop_req = '>= 40'
endif
if get_option('systemd')
- libsystemd_dep = dependency('libsystemd')
- systemd_dep = dependency('systemd')
+ libsystemd_dep = dependency('libsystemd', version: systemd_req)
+ systemd_dep = dependency('systemd', version: systemd_req)
systemduserunitdir = systemd_dep.get_variable('systemduserunitdir',
pkgconfig_define: ['prefix', prefix])
have_systemd = true